package com.athena.crm.mapper;

import com.athena.crm.domain.Company;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS("slave")
@Mapper
public interface CompanyMapper extends BaseMapper<Company> {
    void batchInsertGuangdong(@Param("companyList") List<Company> companyList);
    void batchInsertShandong(@Param("companyList") List<Company> companyList);
    void batchInsertJiangsu(@Param("companyList") List<Company> companyList);
    void batchInsertZhejiang(@Param("companyList") List<Company> companyList);
    void batchInsertShanghai(@Param("companyList") List<Company> companyList);
    void batchInsertHenan(@Param("companyList") List<Company> companyList);
    void batchInsertBeijing(@Param("companyList") List<Company> companyList);
    void batchInsertHebei(@Param("companyList") List<Company> companyList);
    void batchInsertSichuan(@Param("companyList") List<Company> companyList);
    void batchInsertAnhui(@Param("companyList") List<Company> companyList);
    void batchInsertHunan(@Param("companyList") List<Company> companyList);
    void batchInsertHubei(@Param("companyList") List<Company> companyList);
    void batchInsertFujian(@Param("companyList") List<Company> companyList);
    void batchInsertJiangxi(@Param("companyList") List<Company> companyList);
    void batchInsertShaanxi(@Param("companyList") List<Company> companyList);
    void batchInsertLiaolin(@Param("companyList") List<Company> companyList);
    void batchInsertShanxi(@Param("companyList") List<Company> companyList);
    void batchInsertGuangxi(@Param("companyList") List<Company> companyList);
    void batchInsertYunnan(@Param("companyList") List<Company> companyList);
    void batchInsertChongqin(@Param("companyList") List<Company> companyList);
    void batchInsertGuizhou(@Param("companyList") List<Company> companyList);
    void batchInsertJilin(@Param("companyList") List<Company> companyList);
    void batchInsertTianjin(@Param("companyList") List<Company> companyList);
    void batchInsertHeilongj(@Param("companyList") List<Company> companyList);
    void batchInsertNeimenggu(@Param("companyList") List<Company> companyList);
    void batchInsertGansu(@Param("companyList") List<Company> companyList);
    void batchInsertXinjiang(@Param("companyList") List<Company> companyList);
    void batchInsertNingxia(@Param("companyList") List<Company> companyList);
    void batchInsertQinghai(@Param("companyList") List<Company> companyList);
    void batchInsertXizang(@Param("companyList") List<Company> companyList);
    void batchInsertHainan(@Param("companyList") List<Company> companyList);
    Long getCount(@Param("sql") String sql);
    List<Company> selectCompanyList(@Param("sql") String sql);
}
